﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ReporteMovimientos.ascx.vb" Inherits="Content_Reportes_report_controls_ReporteMovimientos" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="ExportToExcel" namespace="KrishLabs.Web.Controls" tagprefix="RK" %>
<style type="text/css">
    .style1
    {
        width: 34px;
    }
    .tablaBusqueda
    {
        width: 1149px;
    }
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div class="titulos">
    <asp:label id="lbl_headerUsers" runat="server" cssclass="titulos" text="Reporte de Movimientos"></asp:label>
</div>
<asp:Panel ID="Panel1" runat="server" CssClass="roundedCorners">

<%--<asp:UpdatePanel ID="UPanel1" runat="server" UpdateMode="Always" >
<ContentTemplate>--%>
<table class="tablaBusqueda">
<tr>
<td> 
    <asp:Label ID="Label1" runat="server" Text="Despachos"></asp:Label>
    </td><td>
        <asp:DropDownList ID="ddlDespacho" runat="server" width="130px">
        </asp:DropDownList>
    </td>
    <td> 
        <asp:Label ID="Label2" runat="server" Text="Institución"></asp:Label>
    </td>
    <td>
        <asp:DropDownList ID="ddlInstitucion" runat="server" width="130px" 
            AutoPostBack="True">
        </asp:DropDownList>
    </td>
    <td>
        <asp:Label ID="Label3" runat="server" Text="Cliente"></asp:Label>
    </td>
    <td>
        <asp:DropDownList ID="ddlCliente" runat="server" width="130px" 
          >
        </asp:DropDownList>
    </td>
    <td>
        <asp:Label ID="Label4" runat="server" Text="Fecha Inicial"></asp:Label>
    </td>
    <td>&nbsp;<asp:TextBox ID="txtFechaI" runat="server"  Width="120px"></asp:TextBox>
        &nbsp;
        <asp:ImageButton ID="img_cal1" runat="server"  ImageUrl="~/images/calendar.gif" />
        <asp:CalendarExtender ID="calendar" runat="server" format="yyyy-MM-dd" PopupButtonID="img_cal1" TargetControlID="txtFechaI"></asp:CalendarExtender>
    </td>
    <td>
        <asp:Label ID="Label5" runat="server" Text="Fecha Final"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="txtFechaF" runat="server" Width="120px"  ValidationGroup="g1"></asp:TextBox>
        <asp:ImageButton ID="img_cal2" runat="server"  ImageUrl="~/images/calendar.gif" />
        <asp:CalendarExtender ID="calendar2" runat="server" format="yyyy-MM-dd" PopupButtonID="img_cal2" TargetControlID="txtFechaF"></asp:CalendarExtender>

     <%--    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ControlToValidate="txtFechaF" Display="none" Forecolor="red" 
                        ValidationGroup="g1"  />
                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="Server" 
                        CloseImageUrl="~/Images/close.gif" CssClass="validatorCallout" 
                        HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"   
                        TargetControlID="RangeValidator1" 
                        WarningIconImageUrl="~/Images/Warning.png" />--%>
    </td>
    <td>
        <asp:ImageButton ID="ImageButton1" runat="server"  ValidationGroup="g1"
            ImageUrl="~/images/Search44.png" style="width: 32px" />
    </td>
</tr>
</table>

  <asp:GridView ID="gvMovimientos" runat="server" AutoGenerateColumns="False" AllowPaging="True" PageSize="15"
                    PagerStyle-CssClass="PagerColor" CssClass="Gridview" HeaderStyle-CssClass="HeaderFooterGridview" FooterStyle-CssClass="HeaderFooterGridview" CellPadding="5" GridLines="None" AlternatingRowStyle-CssClass="GridviewAlt">

                    <Columns>

                        <asp:BoundField DataField="movi_tipo_op" HeaderText="OPERACIÓN" />
                        <asp:BoundField DataField="Cliente" HeaderText="NOMBRE" />
                        <asp:BoundField DataField="contrato" HeaderText="CONTRATO" />
                        <asp:BoundField DataField="movi_monto" HeaderText="MONTO" DataFormatString="{0:C}" />
                        <asp:BoundField DataField="despacho" HeaderText="DESPACHO" />
                        <asp:BoundField DataField="inst_nombre" HeaderText="INSTITUCIÓN" />
                        <asp:BoundField DataField="movi_fecha_op" HeaderText="FECHA" DataFormatString="{0:dd-M-yyyy}" />
                    </Columns>
                </asp:GridView>
    <asp:ImageButton ID="btn_excel" runat="server" 
        ImageUrl="~/images/excel333.png" Visible="False" />
    <asp:HyperLink ID="hl_pdf" runat="server" Target="_blank" 
        NavigateUrl="~/Content/Reportes/creaPDF.aspx" ImageUrl="~/Images/PDF.png" 
        Visible="False"></asp:HyperLink>
    <%--<RK:ExportToExcel ID="ExportToExcel1" runat="server" ApplyStyleInExcel="True" 
        Charset="utf-8" ContentEncoding="windows-1250" EnableHyperLinks="True" 
         IncludeTimeStamp="True" PageSize="All"  Text="Exportar" CssClass="button" ExportFileName="ReporteMovimientos.xls"  GridViewID="gvMovimientos"  />--%>
    <br />
<%--</ContentTemplate>
</asp:UpdatePanel>--%>


</asp:Panel>